﻿using VOL.RabbitMq.RabbitMqDto.Enum;

namespace VOL.RabbitMq.RabbitMqDto.Payload
{
    /// <summary>
    /// 机器人发布负载
    /// </summary>
    [Serializable]
    public class PublishPayload : BasePayload
    {
        /// <summary>
        /// 机器人标识
        /// </summary>
        public Int64 Id { get; set; }
        /// <summary>
        /// 机器人数据
        /// </summary>
        public Decimal? Value { get; set; } = null;
        /// <summary>
        /// 机器人状态（默认离线）
        /// </summary>
        public EnumEquipmentStatus State { get; set; } = EnumEquipmentStatus.Offline;
        /// <summary>
        /// 提示信息
        /// </summary>
        public String Tip { get; set; } = null;
        /// <summary>
        /// RTC
        /// </summary>
        public String RTC => DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
    }
}
